<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<html>
<head>
<title>订单列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=htmlPath %>css/vip.css" type="text/css">
<script language="JavaScript">
<!--
	//到指定的分页页面
	function topage(page){
		var form = document.forms[0];
		form.page.value=page;
		form.submit();
	}
	
	function allSelect(items){
		var form = document.forms[0];
		var state = form.allselectbox.checked;
		var length = items.length;
		if(length){
			for(var i=0;i<length;i++){
				items[i].checked=state;
			}
		}else{
			items.checked=state;
		}
	}
	function _action(methodName){
		var form = document.forms[0];
		form.action='<html:rewrite action="/control/order/manage"/>?method='+ methodName;
		form.submit();
	}
	function selectItem(items){
		var form = document.forms[0];
		var length = items.length;
		if(length){
			for(var i=0;i<length;i++){
				if(items[i].checked) return true;
			}
		}else{
			return items.checked;
		}
		return false;
	}
//-->
</script>
<SCRIPT language=JavaScript src="<%=htmlPath %>js/FoshanRen.js"></SCRIPT>
</head>

<body bgcolor="#FFFFFF" text="#000000" marginwidth="0" marginheight="0">
<form action="<%=basePath %>employee/orderquery.do" method="post">
	  <input type="hidden" name="page"> 
	  <input type="hidden" name="query"> 
	  <input type="hidden" name="orderid"> 
	  <input type="hidden" name="state"> 
	  <input type="hidden" name="username"> 
	  <input type="hidden" name="recipients"> 
	  <input type="hidden" name="buyer"> 
	  <input name="method" type="hidden">
	  <table width="98%" border="0" cellspacing="1" cellpadding="2" align="center">
	    <tr >
	    	<td colspan="12" bgcolor="6f8ac4" align="right">
	    		<%@ include file="/WEB-INF/page/share/fenye.jsp" %>
	    	</td>
	    </tr>
	    <tr>
	      <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">订单ID</font></div></td>
	      <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">订单展示ID</font></div></td>
	      <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">APP方商家ID</font></div></td>
	      <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">美团商家名称</font></div></td>
		  <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">美团商家地址</font></div></td>
		  
		  <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">美团商家电话</font></div></td>
		  <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">收件人地址</font></div></td>
		  <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">收件人电话</font></div></td>
		  <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">收件人姓名</font></div></td>
		  <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">门店配送费</font></div></td>
		  
		  <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">总价</font></div></td>
		  <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">原价</font></div></td>
		  <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">送餐员电话</font></div></td>
		  <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">订单状态</font></div></td>
		  <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">创建时间</font></div></td>
		  
		  <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">支付类型</font></div></td>
		  <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">实际送餐地址纬度</font></div></td>
		  <td width="" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">实际送餐地址经度</font></div></td>
		  
	    </tr>
	<!---------------------------LOOP START------------------------------>
		<c:forEach items="${pageView.records}" var="entry">
		    <tr>
		      <td bgcolor="f5f5f5"> <div align="center">${entry.order_id}</div></td>
		      <td bgcolor="f5f5f5"> <div align="center">${entry.wm_order_id_view}</div></td>
		      <td bgcolor="f5f5f5"> <div align="center">${entry.app_poi_code }</div></td>
			  <td bgcolor="f5f5f5"> <div align="center">${entry.wm_poi_name}</div></td>
			  <td bgcolor="f5f5f5"> <div align="center">${entry.wm_poi_address }</div></td>
			  
			  <td bgcolor="f5f5f5"> <div align="center">${entry.wm_poi_phone }</div></td>
			  <td bgcolor="f5f5f5"> <div align="center">${entry.recipient_address }</div></td>
			  <td bgcolor="f5f5f5"> <div align="center">${entry.recipient_phone }</div></td>
			  <td bgcolor="f5f5f5"> <div align="center">${entry.recipient_name }</div></td>
			  <td bgcolor="f5f5f5"> <div align="center">${entry.shipping_fee }</div></td>
			  
			  <td bgcolor="f5f5f5"> <div align="center">${entry.total }</div></td>
			  <td bgcolor="f5f5f5"> <div align="center">${entry.original_price }</div></td>
			  <td bgcolor="f5f5f5"> <div align="center">${entry.shipper_phone }</div></td>
			  <td bgcolor="f5f5f5"> <div align="center">${entry.status }</div></td>
			  <td bgcolor="f5f5f5"> <div align="center">${entry.ctime }</div></td>
			  
			  <td bgcolor="f5f5f5"> <div align="center"> <c:if test="${entry.pay_type}">货到付款</c:if><c:if test="${!entry.pay_type}">在线支付</c:if></div></td>
			  <td bgcolor="f5f5f5"> <div align="center">${entry.latitude }</div></td>
			  <td bgcolor="f5f5f5"> <div align="center">${entry.longitude }</div></td>
			</tr>
		</c:forEach>
	 </table>
</form>
</body>
</html>